package com.gupaoedu.vip.pattern.observer.subject;

/**
 * Created by Administrator on 2018/7/6.
 */
public class Subject extends EventLisenter {

    public void add(){
        System.out.println("调用添加方法");
        trigger(SubjectEventType.ON_ADD);
    }

    public void remove(){
        System.out.println("调用删除方法");
        trigger(SubjectEventType.ON_REMOVE);
    }
}
